<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/layui.css" rel="stylesheet">
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${receiptTick.id}"  type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">票号：</label>
								<div class="col-sm-8">
									<input id="tickerNumber" name="tickerNumber" th:value="${receiptTick.tickerNumber}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">票额 ：</label>
								<div class="col-sm-8">
									<input id="tickAmount" name="tickAmount" th:value="${receiptTick.tickAmount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">税率：</label>
								<div class="col-sm-8">
<!--									<input id="taxRate" name="taxRate" th:value="${receiptTick.taxRate}" class="form-control" type="text">-->
									<select data-placeholder="税率" id="taxRate" name="taxRate" class="form-control chosen-select chosen-select-taxRate" tabindex="2" required>
										<option value="">税率</option>
										<option th:each="reimburseType : ${reimburseTypeList}"
												th:value="${reimburseType.taxRate}" th:text="${reimburseType.name}"
												th:selected="${reimburseType.taxRate} == ${receiptTick.taxRate}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">不含税价：</label>
								<div class="col-sm-8">
									<input id="excTaxAmount" name="excTaxAmount" th:value="${receiptTick.excTaxAmount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">采购合同：</label>
								<div class="col-sm-8">
									<!--<input id="purId" name="purId" th:value="${receiptTick.purId}" class="form-control" type="text">-->
									<select data-placeholder="采购合同" id="purId" name="purId" class="form-control chosen-select" tabindex="2" required>
										<option value="">采购合同</option>
										<option th:each="groupDO : ${groupDOList}" th:value="${groupDO.id}" th:text="${groupDO.groupid}"
												th:selected="${groupDO.id} == ${receiptTick.purId}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">供应商：</label>
								<div class="col-sm-8">
									<!--<input id="supplierId" name="supplierId" th:value="${receiptTick.supplierId}" class="form-control" type="text">-->
									<select data-placeholder="供应商" name="purId" class="form-control chosen-select" tabindex="2" required>
										<option value="">供应商</option>
										<option th:each="supplierDO : ${supplierDOList}" th:value="${supplierDO.id}" th:text="${supplierDO.name}"
												th:selected="${supplierDO.id} == ${receiptTick.supplierId}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">收票时间：</label>
								<div class="col-sm-8">
									<input type="text" class="laydate-icon layer-date form-control" id="invoiceTime"
										   name="invoiceTime" placeholder="请选择发票日期"  th:value="${receiptTick.invoiceTime}"
										   onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" style="background-color: #fff;" readonly="readonly"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">收票人ID：</label>
								<div class="col-sm-8">
<!--									<input id="invoiceUserId" name="invoiceUserId" th:value="${receiptTick.invoiceUserId}" class="form-control" type="text">-->
									<select data-placeholder="供应商" name="purId" class="form-control chosen-select" tabindex="2" required>
										<option value="">供应商</option>
										<option th:each="userD0 : ${userD0List}" th:value="${userD0.userId}" th:text="${userD0.name}"
												th:selected="${userD0.userId} == ${receiptTick.invoiceUserId}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/fin/receiptTick/edit.js"></script>
	<script type="text/javascript" src="/js/plugins/cropper/cropper.min.js"></script>
	<script type="text/javascript" src="/js/plugins/layer/laydate/laydate.js" ></script>
	<script type="text/javascript" src="/js/plugins/distpicker/distpicker.data.min.js"></script>
	<script type="text/javascript" src="/js/plugins/distpicker/distpicker.min.js"></script>
</body>
</html>
